#ifndef WIDGET_H
#define WIDGET_H

#include <QButtonGroup>
#include <QMap>
#include <QWidget>
#include "contrlutils.h"
#include "custontheme.h"
#include "mycolor.h"
#include "cam.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
protected:
    void paintEvent(QPaintEvent *event) override;
private slots:
    void on_btnDev_clicked();
    void on_btnHome_clicked();
    void on_btnTheme_clicked();
    void lightCon(bool);
    void shanCon(bool);
    void airCon(bool);

    void on_btnCam_clicked();

private:
    Ui::Widget *ui;
    QWidget *widgetCover = nullptr;
    ContrlUtils *contrlUtil = nullptr;
    QButtonGroup *buttonGroup;
    CustonTheme *themeWidget;
    Cam *camWidget;

    void setTheme();
    void setBtnColor(QWidget *btn);
    void showCover();

};
#endif // WIDGET_H
